﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PingPongMain
{
    public static class PrepareField
    {
        public static int WorldRows = Console.WindowHeight;
        public static int worldCols = Console.WindowWidth;

        private enum Colors
        {
            Red = ConsoleColor.Red,
            Green = ConsoleColor.Green,
            Blue = ConsoleColor.Blue,
            White = ConsoleColor.White
        };

        static public void SetGameField()
        {
            Console.ForegroundColor = (ConsoleColor)Colors.Green;
            Console.BackgroundColor = (ConsoleColor)Colors.Red;
            Console.BufferHeight = WorldRows;
            Console.BufferWidth = worldCols;
            for (int i = 0; i < PrepareField.worldCols; i++)
            {

                Console.SetCursorPosition(i, PrepareField.WorldRows - 2);
                Console.Write("_");
            }
        }
    }
}
